package com.wesley.adapter;

/**
 * <h1>概述</h1>
 * <p>详述</p>
 *
 * @Date: 2021/8/13
 */
public class Phone {

    public void charging(IVoltage voltage) {
        int i = voltage.output5V();
        if (i == 5) {
            System.out.println("电压5V，正在充电...");
        } else {
            System.out.println("电压不对，无法充电...");
        }
    }

}
